<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>服务端</title>
</head>
<body>

        <div>我是客户端的模板引擎</div>
        {{each person}}
        {{if $value.age>18}}
        <div>我是{{$value.name}},今年{{$value.age}}了,我已经成年啦</div>
        {{else}}
        <div>我是{{$value.name}},今年{{$value.age}}了,我还未成年呢</div>
        {{/if}}
        {{/each}}

</body>
</html>